<?php
// $Id: page.tpl.php,v 1.42 2010/01/30 07:59:26 dries Exp $
?>
<?php print render($page['header']); ?>

<div id="dc-wrapper">

<!--BEGEN HEADER-->
<div id="dc-header">
<div class="main clearfix">
    <?php if($logo): ?>
	<h1 class="logo">
		<a href="<?php print $front_page ?>" title="<?php print $site_name_and_slogan; ?>"><span><?php print $site_name_and_slogan; ?></span></a>
	</h1>
	<?php else: ?>
	<div class="logo-text">
		<h1>
			<a href="<?php print $front_page ?>" title="<?php print $site_name; ?>"><span><?php print $site_name; ?></span></a>
		</h1>
		<p class="site-slogan"><?php print site_slogan;?></p>
	</div>
	<?php endif; ?>

	<?php if($page['search']): ?>
	<div id="search">
		<?php print render($page['search'])  ?>
	</div>
	<?php endif; ?>
</div>
</div>
<!--END HEADER-->

<!--NAVIGATION-->
<div id="dc-navigation" class="row">
<div class="main clearfix">
	<?php if ($main_menu): print_r($main_menu); endif; ?>
    <?php if ($secondary_menu): print $secondary_menu; endif; ?>
</div>
</div>
<!--END NAVIGATION-->

<!--MAIN BODY-->
<div id="dc-mainbody" class="row">
<div class="main clearfix">


<!--SIDEBAR FIRST-->
<?php if ($page['sidebar_first']): ?>
<div id="dc-sidebar-first" class="column sidebar">
  <?php print render($page['sidebar_first']); ?>
</div>
<?php endif; ?>
<!--END SIDEBAR FIRST-->


<!--MAIN CONTENT-->
<div id="dc-main-content" class="column main">
<div id="center">
  <?php print $breadcrumb; ?>
  <?php if ($page['highlight']): ?><div id="highlight"><?php render($page['highlight']); ?></div><?php endif; ?>
  <a id="main-content"></a>
  <?php if ($tabs): ?><div id="tabs-wrapper" class="clearfix"><?php endif; ?>
  <?php print render($title_prefix); ?>
  <?php if ($title): ?>
    <h1<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h1>
  <?php endif; ?>
  <?php print render($title_suffix); ?>
  <?php if ($tabs): ?><ul class="tabs primary"><?php print render($tabs) ?></ul></div><?php endif; ?>
  <?php if ($tabs2): ?><ul class="tabs secondary"><?php print render($tabs2) ?></ul><?php endif; ?>
  <?php print $messages; ?>
  <?php print render($page['help']); ?>
  <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
  <div class="clearfix">
    <?php print render($page['content']); ?>
  </div>
  <?php print $feed_icons ?>
  <?php print render($page['footer']) ?>
</div> <!-- /#center -->
</div>
<!--END MAIN CONTENT-->


<!--SIDEBAR SECOND-->
<?php if ($page['sidebar_second']): ?>
<div id="dc-sidebar-second" class="column sidebar">
  <?php print render($page['sidebar_second']); ?>
</div>
<?php endif; ?>
<!--END SIDEBAR SECOND-->

</div>
</div>
<!--END MAINBODY-->


</div> <!-- /#wrapper -->